﻿using System;
using System.Data;
using System.Data.Common;
using Hxj.Data;
using Hxj.Data.Common;

namespace RecruitStudents.Utility.Model
{

	/// <summary>
	/// 实体类TB_Dic_PadExamScorePageSetting_Detail 。(属性说明自动提取数据库字段的描述信息)
	/// </summary>
	[Serializable]
	public class TB_Dic_PadExamScorePageSetting_Detail : Entity 
	{
		public TB_Dic_PadExamScorePageSetting_Detail():base("TB_Dic_PadExamScorePageSetting_Detail") {    _PadExamScorePageSettingDetailID=Guid.NewGuid().ToString();}

        #region Model
        private string _PadExamScorePageSettingDetailID;
        private string _PadExamScorePageSettingID;
        private string _Column1;
        private string _Column6;
        private string _Column2;
        private string _Column2IsTitle;
        private string _Column3IsTitle;
        private string _Column1IsTitle;
        private string _Column4IsTitle;
        private string _Column3;
        private string _Column5IsTitle;
        private string _Column4;
        private string _Column6IsTitle;
        private string _Column5;
        private int? _Sort;
        /// <summary>
        /// 
        /// </summary>
        public string PadExamScorePageSettingDetailID
        {
            get { return _PadExamScorePageSettingDetailID; }
            set
            {
                this.OnPropertyValueChange(_.PadExamScorePageSettingDetailID, _PadExamScorePageSettingDetailID, value);
                this._PadExamScorePageSettingDetailID = value;
            }
        }
        /// <summary>
        /// 对应主表ID
        /// </summary>
        public string PadExamScorePageSettingID
        {
            get { return _PadExamScorePageSettingID; }
            set
            {
                this.OnPropertyValueChange(_.PadExamScorePageSettingID, _PadExamScorePageSettingID, value);
                this._PadExamScorePageSettingID = value;
            }
        }
        /// <summary>
        /// 第一列
        /// </summary>
        public string Column1
        {
            get { return _Column1; }
            set
            {
                this.OnPropertyValueChange(_.Column1, _Column1, value);
                this._Column1 = value;
            }
        }
        /// <summary>
        /// 第一列
        /// </summary>
        public string Column6
        {
            get { return _Column6; }
            set
            {
                this.OnPropertyValueChange(_.Column6, _Column6, value);
                this._Column6 = value;
            }
        }
        /// <summary>
        /// 第一列
        /// </summary>
        public string Column2
        {
            get { return _Column2; }
            set
            {
                this.OnPropertyValueChange(_.Column2, _Column2, value);
                this._Column2 = value;
            }
        }
        /// <summary>
        /// 第一列是否标题
        /// </summary>
        public string Column2IsTitle
        {
            get { return _Column2IsTitle; }
            set
            {
                this.OnPropertyValueChange(_.Column2IsTitle, _Column2IsTitle, value);
                this._Column2IsTitle = value;
            }
        }
        /// <summary>
        /// 第一列是否标题
        /// </summary>
        public string Column3IsTitle
        {
            get { return _Column3IsTitle; }
            set
            {
                this.OnPropertyValueChange(_.Column3IsTitle, _Column3IsTitle, value);
                this._Column3IsTitle = value;
            }
        }
        /// <summary>
        /// 第一列是否标题
        /// </summary>
        public string Column1IsTitle
        {
            get { return _Column1IsTitle; }
            set
            {
                this.OnPropertyValueChange(_.Column1IsTitle, _Column1IsTitle, value);
                this._Column1IsTitle = value;
            }
        }
        /// <summary>
        /// 第一列是否标题
        /// </summary>
        public string Column4IsTitle
        {
            get { return _Column4IsTitle; }
            set
            {
                this.OnPropertyValueChange(_.Column4IsTitle, _Column4IsTitle, value);
                this._Column4IsTitle = value;
            }
        }
        /// <summary>
        /// 第一列
        /// </summary>
        public string Column3
        {
            get { return _Column3; }
            set
            {
                this.OnPropertyValueChange(_.Column3, _Column3, value);
                this._Column3 = value;
            }
        }
        /// <summary>
        /// 第一列是否标题
        /// </summary>
        public string Column5IsTitle
        {
            get { return _Column5IsTitle; }
            set
            {
                this.OnPropertyValueChange(_.Column5IsTitle, _Column5IsTitle, value);
                this._Column5IsTitle = value;
            }
        }
        /// <summary>
        /// 第一列
        /// </summary>
        public string Column4
        {
            get { return _Column4; }
            set
            {
                this.OnPropertyValueChange(_.Column4, _Column4, value);
                this._Column4 = value;
            }
        }
        /// <summary>
        /// 第一列是否标题
        /// </summary>
        public string Column6IsTitle
        {
            get { return _Column6IsTitle; }
            set
            {
                this.OnPropertyValueChange(_.Column6IsTitle, _Column6IsTitle, value);
                this._Column6IsTitle = value;
            }
        }
        /// <summary>
        /// 第一列
        /// </summary>
        public string Column5
        {
            get { return _Column5; }
            set
            {
                this.OnPropertyValueChange(_.Column5, _Column5, value);
                this._Column5 = value;
            }
        }
        /// <summary>
        /// 排序
        /// </summary>
        public int? Sort
        {
            get { return _Sort; }
            set
            {
                this.OnPropertyValueChange(_.Sort, _Sort, value);
                this._Sort = value;
            }
        }
        #endregion

        #region Method
        /// <summary>
        /// 获取实体中的主键列
        /// </summary>
        public override Field[] GetPrimaryKeyFields()
        {
            return new Field[] {
				_.PadExamScorePageSettingDetailID};
        }
        /// <summary>
        /// 获取列信息
        /// </summary>
        public override Field[] GetFields()
        {
            return new Field[] {
				_.PadExamScorePageSettingDetailID,
				_.PadExamScorePageSettingID,
				_.Column1,
				_.Column6,
				_.Column2,
				_.Column2IsTitle,
				_.Column3IsTitle,
				_.Column1IsTitle,
				_.Column4IsTitle,
				_.Column3,
				_.Column5IsTitle,
				_.Column4,
				_.Column6IsTitle,
				_.Column5,
				_.Sort};
        }
        /// <summary>
        /// 获取值信息
        /// </summary>
        public override object[] GetValues()
        {
            return new object[] {
				this._PadExamScorePageSettingDetailID,
				this._PadExamScorePageSettingID,
				this._Column1,
				this._Column6,
				this._Column2,
				this._Column2IsTitle,
				this._Column3IsTitle,
				this._Column1IsTitle,
				this._Column4IsTitle,
				this._Column3,
				this._Column5IsTitle,
				this._Column4,
				this._Column6IsTitle,
				this._Column5,
				this._Sort};
        }
        /// <summary>
        /// 给当前实体赋值
        /// </summary>
        public override void SetPropertyValues(IDataReader reader)
        {
            this._PadExamScorePageSettingDetailID = DataUtils.ConvertValue<string>(reader["PadExamScorePageSettingDetailID"]);
            this._PadExamScorePageSettingID = DataUtils.ConvertValue<string>(reader["PadExamScorePageSettingID"]);
            this._Column1 = DataUtils.ConvertValue<string>(reader["Column1"]);
            this._Column6 = DataUtils.ConvertValue<string>(reader["Column6"]);
            this._Column2 = DataUtils.ConvertValue<string>(reader["Column2"]);
            this._Column2IsTitle = DataUtils.ConvertValue<string>(reader["Column2IsTitle"]);
            this._Column3IsTitle = DataUtils.ConvertValue<string>(reader["Column3IsTitle"]);
            this._Column1IsTitle = DataUtils.ConvertValue<string>(reader["Column1IsTitle"]);
            this._Column4IsTitle = DataUtils.ConvertValue<string>(reader["Column4IsTitle"]);
            this._Column3 = DataUtils.ConvertValue<string>(reader["Column3"]);
            this._Column5IsTitle = DataUtils.ConvertValue<string>(reader["Column5IsTitle"]);
            this._Column4 = DataUtils.ConvertValue<string>(reader["Column4"]);
            this._Column6IsTitle = DataUtils.ConvertValue<string>(reader["Column6IsTitle"]);
            this._Column5 = DataUtils.ConvertValue<string>(reader["Column5"]);
            this._Sort = DataUtils.ConvertValue<int?>(reader["Sort"]);
        }
        /// <summary>
        /// 给当前实体赋值
        /// </summary>
        public override void SetPropertyValues(DataRow row)
        {
            this._PadExamScorePageSettingDetailID = DataUtils.ConvertValue<string>(row["PadExamScorePageSettingDetailID"]);
            this._PadExamScorePageSettingID = DataUtils.ConvertValue<string>(row["PadExamScorePageSettingID"]);
            this._Column1 = DataUtils.ConvertValue<string>(row["Column1"]);
            this._Column6 = DataUtils.ConvertValue<string>(row["Column6"]);
            this._Column2 = DataUtils.ConvertValue<string>(row["Column2"]);
            this._Column2IsTitle = DataUtils.ConvertValue<string>(row["Column2IsTitle"]);
            this._Column3IsTitle = DataUtils.ConvertValue<string>(row["Column3IsTitle"]);
            this._Column1IsTitle = DataUtils.ConvertValue<string>(row["Column1IsTitle"]);
            this._Column4IsTitle = DataUtils.ConvertValue<string>(row["Column4IsTitle"]);
            this._Column3 = DataUtils.ConvertValue<string>(row["Column3"]);
            this._Column5IsTitle = DataUtils.ConvertValue<string>(row["Column5IsTitle"]);
            this._Column4 = DataUtils.ConvertValue<string>(row["Column4"]);
            this._Column6IsTitle = DataUtils.ConvertValue<string>(row["Column6IsTitle"]);
            this._Column5 = DataUtils.ConvertValue<string>(row["Column5"]);
            this._Sort = DataUtils.ConvertValue<int?>(row["Sort"]);
        }
        #endregion

        #region _Field
        /// <summary>
        /// 字段信息
        /// </summary>
        public class _
        {
            /// <summary>
            /// * 
            /// </summary>
            public readonly static Field All = new Field("*", "TB_Dic_PadExamScorePageSetting_Detail");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field PadExamScorePageSettingDetailID = new Field("PadExamScorePageSettingDetailID", "TB_Dic_PadExamScorePageSetting_Detail", "PadExamScorePageSettingDetailID");
            /// <summary>
            /// 对应主表ID
            /// </summary>
            public readonly static Field PadExamScorePageSettingID = new Field("PadExamScorePageSettingID", "TB_Dic_PadExamScorePageSetting_Detail", "对应主表ID");
            /// <summary>
            /// 第一列
            /// </summary>
            public readonly static Field Column1 = new Field("Column1", "TB_Dic_PadExamScorePageSetting_Detail", "第一列");
            /// <summary>
            /// 第一列
            /// </summary>
            public readonly static Field Column6 = new Field("Column6", "TB_Dic_PadExamScorePageSetting_Detail", "第一列");
            /// <summary>
            /// 第一列
            /// </summary>
            public readonly static Field Column2 = new Field("Column2", "TB_Dic_PadExamScorePageSetting_Detail", "第一列");
            /// <summary>
            /// 第一列是否标题
            /// </summary>
            public readonly static Field Column2IsTitle = new Field("Column2IsTitle", "TB_Dic_PadExamScorePageSetting_Detail", "第一列是否标题");
            /// <summary>
            /// 第一列是否标题
            /// </summary>
            public readonly static Field Column3IsTitle = new Field("Column3IsTitle", "TB_Dic_PadExamScorePageSetting_Detail", "第一列是否标题");
            /// <summary>
            /// 第一列是否标题
            /// </summary>
            public readonly static Field Column1IsTitle = new Field("Column1IsTitle", "TB_Dic_PadExamScorePageSetting_Detail", "第一列是否标题");
            /// <summary>
            /// 第一列是否标题
            /// </summary>
            public readonly static Field Column4IsTitle = new Field("Column4IsTitle", "TB_Dic_PadExamScorePageSetting_Detail", "第一列是否标题");
            /// <summary>
            /// 第一列
            /// </summary>
            public readonly static Field Column3 = new Field("Column3", "TB_Dic_PadExamScorePageSetting_Detail", "第一列");
            /// <summary>
            /// 第一列是否标题
            /// </summary>
            public readonly static Field Column5IsTitle = new Field("Column5IsTitle", "TB_Dic_PadExamScorePageSetting_Detail", "第一列是否标题");
            /// <summary>
            /// 第一列
            /// </summary>
            public readonly static Field Column4 = new Field("Column4", "TB_Dic_PadExamScorePageSetting_Detail", "第一列");
            /// <summary>
            /// 第一列是否标题
            /// </summary>
            public readonly static Field Column6IsTitle = new Field("Column6IsTitle", "TB_Dic_PadExamScorePageSetting_Detail", "第一列是否标题");
            /// <summary>
            /// 第一列
            /// </summary>
            public readonly static Field Column5 = new Field("Column5", "TB_Dic_PadExamScorePageSetting_Detail", "第一列");
            /// <summary>
            /// 排序
            /// </summary>
            public readonly static Field Sort = new Field("Sort", "TB_Dic_PadExamScorePageSetting_Detail", "排序");
        }
        #endregion


    }
}

